import Layout from '@/layout'

export default {
  path: '/approvals',
  component: Layout,
  name: 'approval',
  redirect: '/approvals/index',
  children: [
    {
      path: 'index',
      component: () => import('@/views/approvals'),
      meta: {
        title: '审批',
        icon: 'form'
      }
    },
    {
      path: 'salaryApproval/:id',
      component: () => import('@/views/approvals/salary'),
      hidden: true
    },
    {
      path: 'enterApproval/:id',
      component: () => import('@/views/approvals/enter'),
      hidden: true
    },
    {
      path: 'leaveApproval/:id',
      component: () => import('@/views/approvals/leave'),
      hidden: true
    },
    {
      path: 'quitApproval/:id',
      component: () => import('@/views/approvals/quit'),
      hidden: true
    },
    {
      path: 'overtimeApproval/:id',
      component: () => import('@/views/approvals/overtime'),
      hidden: true
    },
    {
      path: 'securitySetting',
      component: () => import('@/views/approvals/security'),
      hidden: true
    }
  ]
}
